package com.lsh.netty.http.xml;

/**
 * @author ：LiuShihao
 * @date ：Created in 2021/6/8 8:43 下午
 * @desc ：订购对象工厂类
 */
public class OrderFactory {
    public static Order create(int orderID) {
        Order order = new Order();
        order.setOrderNum(orderID);
        order.setTotalPrice(9999.999f);
        Address address = new Address();
        address.setCity("南京市");
        address.setCountry("中国");
        address.setPostCode("123321");
        address.setProvince("江苏省");
        address.setStreet1("龙眠大道");
        order.setBillAddress(address);
        Customer customer = new Customer();
        customer.setCustId(orderID);
        customer.setXing("李");
        customer.setName("林峰");
        order.setCustomer(customer);
        order.setShipping(Shipping.ZJS);
        order.setAddress(address);
        return order;
    }

}
